C# functions

71

C# functions -

// In C#, this is how we define a function:
/*
In this case, the function is called 'myFunction', it takes
1 parameter which is an integer and doesn't return anything (void).
*/
static void myFunction(int a)
{
  // INSERT CODE HERE
  Console.WriteLine(a);
}

Comments

Submit
0 Comments